package com.chengqs.rainbow.chat.dao;

import com.chengqs.rainbow.chat.domain.ChatMemberDO;
import com.chengqs.rainbow.common.persistent.dao.BaseDAO;

import java.util.List;
import java.util.Optional;

/**
 * <B>主类名称：</B>ChatMemberDAO<BR>
 * <B>概要说明：</B>enter<BR>
 *
 * @author: chengqs
 * @create: 2025-09-16 22:53:57
 **/
public interface ChatMemberDAO extends BaseDAO<ChatMemberDO> {

    List<ChatMemberDO> list(Long memberId);

    Optional<ChatMemberDO> get(Integer type, Long memberId, Long peerId);

    Optional<ChatMemberDO> get(Integer type, Long peerId);
}
